package com.nq.controller;


import com.nq.common.ServerResponse;
import com.nq.service.IFundsApplyService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;

@Controller
@RequestMapping({"/api/fundsApply/"})
@Slf4j
public class FundsApplyController {


    @Resource
    private IFundsApplyService iFundsApplyService;


    @RequestMapping(value = {"cancelFundsApply.do"}, method = {RequestMethod.POST})
    @ResponseBody
    public ServerResponse reg(@RequestParam(value = "fundApplyId", required = false) Integer fundApplyId, HttpServletRequest httpServletRequest) {
        return this.iFundsApplyService.cancelFundsApply(fundApplyId, httpServletRequest);
    }
}
